package com.utils;

import org.junit.Test;

import java.util.ArrayList;

public class ArrayToStr1 {

    @Test
    public void test() {
        ArrayList<Long> list = new ArrayList<>();
        String[] lStrArray = numStr.split("\n");
        for (String lStr : lStrArray) {
            list.add(Long.valueOf(lStr));
        }
//        list.sort(Long::compareTo);
        StringBuilder sb = new StringBuilder();
        sb.append("(");
        for (int i = 0; i < list.size(); ++i) {
            sb.append(list.get(i)).append(",");
            if (i > 0 && i % 200 == 0) {
                sb.append("\n");
            }
        }
        sb.replace(sb.length() - 1, sb.length(), ")");
        System.out.println("数量共: " + list.size());
        System.out.println(sb);
    }

    String numStr = "178576\n" +
            "178577\n" +
            "178578\n" +
            "178579\n" +
            "178580\n" +
            "178581\n" +
            "178582\n" +
            "178583\n" +
            "178584\n" +
            "178585\n" +
            "178586\n" +
            "178587\n" +
            "178588\n" +
            "178589\n" +
            "178590\n" +
            "178591\n" +
            "178592\n" +
            "178593\n" +
            "178594\n" +
            "178595\n" +
            "178596\n" +
            "178597\n" +
            "178598\n" +
            "178599\n" +
            "178600\n" +
            "178601\n" +
            "178602\n" +
            "178603\n" +
            "178604\n" +
            "178605\n" +
            "178606\n" +
            "178607\n" +
            "178608\n" +
            "178609\n" +
            "178610\n" +
            "178611\n" +
            "178612\n" +
            "178613\n" +
            "178614\n" +
            "178615\n" +
            "178616\n" +
            "178617\n" +
            "178618\n" +
            "178619\n" +
            "178620\n" +
            "178621\n" +
            "178622\n" +
            "178623\n" +
            "178624\n" +
            "178625\n" +
            "178626\n" +
            "178627\n" +
            "178628\n" +
            "178629\n" +
            "178630\n" +
            "178631\n" +
            "178632\n" +
            "178633\n" +
            "178634\n" +
            "178635\n" +
            "178636\n" +
            "178637\n" +
            "178638\n" +
            "178639\n" +
            "178640\n" +
            "178641\n" +
            "178642\n" +
            "178643\n" +
            "178644\n" +
            "178645\n" +
            "178646\n" +
            "178647\n" +
            "178648\n" +
            "178649\n" +
            "178650\n" +
            "178651\n" +
            "178652\n" +
            "178653\n" +
            "178654\n" +
            "178655\n" +
            "178656\n" +
            "178657\n" +
            "178658\n" +
            "178659\n" +
            "178660\n" +
            "178661\n" +
            "178662\n" +
            "178663\n" +
            "178664\n" +
            "178665\n" +
            "178666\n" +
            "178667\n" +
            "178668\n" +
            "178669\n" +
            "178670\n" +
            "178671\n" +
            "178672\n" +
            "178673\n" +
            "178674\n" +
            "178675\n" +
            "178676\n" +
            "178677\n" +
            "178678\n" +
            "178679\n" +
            "178680\n" +
            "178681\n" +
            "178682\n" +
            "178683\n" +
            "178684\n" +
            "178685\n" +
            "178686\n" +
            "178687\n" +
            "178688\n" +
            "178689\n" +
            "178690\n" +
            "178691\n" +
            "178692\n" +
            "178693\n" +
            "178694\n" +
            "178695\n" +
            "178696\n" +
            "178697\n" +
            "178698\n" +
            "178699\n" +
            "178700\n" +
            "178701\n" +
            "178702\n" +
            "178703\n" +
            "178704\n" +
            "178705\n" +
            "178706\n" +
            "178707\n" +
            "178708\n" +
            "178709\n" +
            "178710\n" +
            "178711\n" +
            "178712\n" +
            "178713\n" +
            "178714\n" +
            "178715\n" +
            "178716\n" +
            "178717\n" +
            "178718\n" +
            "178719\n" +
            "178720\n" +
            "178721\n" +
            "178722\n" +
            "178723\n" +
            "178724\n" +
            "178725\n" +
            "178726\n" +
            "178727\n" +
            "178728\n" +
            "178729\n" +
            "178730\n" +
            "178731\n" +
            "178732\n" +
            "178733\n" +
            "178734\n" +
            "178735\n" +
            "178736\n" +
            "178737\n" +
            "178738\n" +
            "178739\n" +
            "178740\n" +
            "178741\n" +
            "178742\n" +
            "178743\n" +
            "178744\n" +
            "178745\n" +
            "178746\n" +
            "178747\n" +
            "178748\n" +
            "178749\n" +
            "178750\n" +
            "178751\n" +
            "178752\n" +
            "178753\n" +
            "178754\n" +
            "178755\n" +
            "178756\n" +
            "178757\n" +
            "178758\n" +
            "178759\n" +
            "178760\n" +
            "178761\n" +
            "178762\n" +
            "178763\n" +
            "178764\n" +
            "178765\n" +
            "178766\n" +
            "178767\n" +
            "178768\n" +
            "178769\n" +
            "178770\n" +
            "178771\n" +
            "178772\n" +
            "178773\n" +
            "178774\n" +
            "178775\n" +
            "178776\n" +
            "178777\n" +
            "178778\n" +
            "178779\n" +
            "178780\n" +
            "178781\n" +
            "178782\n" +
            "178783\n" +
            "178784\n" +
            "178785\n" +
            "178786\n" +
            "178787\n" +
            "178788\n" +
            "178789\n" +
            "178790\n" +
            "178791\n" +
            "178792\n" +
            "178793\n" +
            "178794\n" +
            "178795\n" +
            "178796\n" +
            "178797\n" +
            "178798\n" +
            "178799\n" +
            "178800\n" +
            "178801\n" +
            "178802\n" +
            "178803\n" +
            "178804\n" +
            "178805\n" +
            "178806\n" +
            "178807\n" +
            "178808\n" +
            "178809\n" +
            "178810\n" +
            "178811\n" +
            "178812\n" +
            "178813\n" +
            "178814\n" +
            "178815\n" +
            "178816\n" +
            "178817\n" +
            "178818\n" +
            "178819\n" +
            "178820\n" +
            "178821\n" +
            "178822\n" +
            "178823\n" +
            "178824\n" +
            "178825\n" +
            "178826\n" +
            "178827\n" +
            "178828\n" +
            "178829\n" +
            "178830\n" +
            "178831\n" +
            "178832\n" +
            "178833\n" +
            "178834\n" +
            "178835\n" +
            "178836\n" +
            "178837\n" +
            "178838\n" +
            "178839\n" +
            "178840\n" +
            "178841\n" +
            "178842\n" +
            "178843\n" +
            "178844\n" +
            "178845\n" +
            "178846\n" +
            "178847\n" +
            "178848\n" +
            "178849\n" +
            "178850\n" +
            "178851\n" +
            "178852\n" +
            "178853\n" +
            "178854\n" +
            "178855\n" +
            "178856\n" +
            "178857\n" +
            "178858\n" +
            "178859\n" +
            "178860\n" +
            "178861\n" +
            "178862\n" +
            "178863\n" +
            "178864\n" +
            "178865\n" +
            "178866\n" +
            "178867\n" +
            "178868\n" +
            "178869\n" +
            "178870\n" +
            "178871\n" +
            "178872\n" +
            "178873\n" +
            "178874\n" +
            "178875\n" +
            "178876\n" +
            "178877\n" +
            "178878\n" +
            "178879\n" +
            "178880\n" +
            "178881\n" +
            "178882\n" +
            "178883\n" +
            "178884\n" +
            "178885\n" +
            "178886\n" +
            "178887\n" +
            "178888\n" +
            "178889\n" +
            "178890\n" +
            "178891\n" +
            "178892\n" +
            "178893\n" +
            "178894\n" +
            "178895\n" +
            "178896\n" +
            "178897\n" +
            "178898\n" +
            "178899\n" +
            "178900\n" +
            "178901\n" +
            "178902\n" +
            "178903\n" +
            "178904\n" +
            "178905\n" +
            "178906\n" +
            "178907\n" +
            "178908\n" +
            "178909\n" +
            "178910\n" +
            "178911\n" +
            "178912\n" +
            "178913\n" +
            "178914\n" +
            "178915\n" +
            "178916\n" +
            "178917\n" +
            "178918\n" +
            "178919\n" +
            "178920\n" +
            "178921\n" +
            "178922\n" +
            "178923\n" +
            "178924\n" +
            "178925\n" +
            "178926\n" +
            "178927\n" +
            "178928\n" +
            "178929\n" +
            "178930\n" +
            "178931\n" +
            "178932\n" +
            "178933\n" +
            "178934\n" +
            "178935\n" +
            "178936\n" +
            "178937\n" +
            "178938\n" +
            "178939\n" +
            "178940\n" +
            "178941\n" +
            "178942\n" +
            "178943\n" +
            "178944\n" +
            "178945\n" +
            "178946\n" +
            "178947\n" +
            "178948\n" +
            "178949\n" +
            "178950\n" +
            "178951\n" +
            "178952\n" +
            "178953\n" +
            "178954\n" +
            "178955\n" +
            "178956\n" +
            "178957\n" +
            "178958\n" +
            "178959\n" +
            "178960\n" +
            "178961\n" +
            "178962\n" +
            "178963\n" +
            "178964\n" +
            "178965\n" +
            "178966\n" +
            "178967\n" +
            "178968\n" +
            "178969\n" +
            "178970\n" +
            "178971\n" +
            "178972\n" +
            "178973\n" +
            "178974\n" +
            "178975\n" +
            "178976\n" +
            "178977\n" +
            "178978\n" +
            "178979\n" +
            "178980\n" +
            "178981\n" +
            "178982\n" +
            "178983\n" +
            "178984\n" +
            "178985\n" +
            "178986\n" +
            "178987\n" +
            "178988\n" +
            "178989\n" +
            "178990\n" +
            "178991\n" +
            "178992\n" +
            "178993\n" +
            "178994\n" +
            "178995\n" +
            "178996\n" +
            "178997\n" +
            "178998\n" +
            "178999\n" +
            "179000\n" +
            "179001\n" +
            "179002\n" +
            "179003\n" +
            "179004\n" +
            "179005\n" +
            "179006\n" +
            "179007\n" +
            "179008\n" +
            "179009\n" +
            "179010\n" +
            "179011\n" +
            "179012\n" +
            "179013\n" +
            "179014\n" +
            "179015\n" +
            "179016\n" +
            "179017\n" +
            "179018\n" +
            "179019\n" +
            "179020\n" +
            "179021\n" +
            "179022\n" +
            "179023\n" +
            "179024\n" +
            "179025\n" +
            "179026\n" +
            "179027\n" +
            "179028\n" +
            "179029\n" +
            "179030\n" +
            "179031\n" +
            "179032\n" +
            "179033\n" +
            "179034\n" +
            "179035\n" +
            "179036\n" +
            "179037\n" +
            "179038\n" +
            "179039\n" +
            "179040\n" +
            "179041\n" +
            "179042\n" +
            "179043\n" +
            "179044\n" +
            "179045\n" +
            "179046\n" +
            "179047\n" +
            "179048\n" +
            "179049\n" +
            "179050\n" +
            "179051\n" +
            "179052\n" +
            "179053\n" +
            "179054\n" +
            "179055\n" +
            "179056\n" +
            "179057\n" +
            "179058\n" +
            "179059\n" +
            "179060\n" +
            "179061\n" +
            "179062\n" +
            "179063\n" +
            "179064\n" +
            "179065\n" +
            "179066\n" +
            "179067\n" +
            "179068\n" +
            "179069\n" +
            "179070\n" +
            "179071\n" +
            "179072\n" +
            "179073\n" +
            "179074\n" +
            "179075\n" +
            "179076\n" +
            "179077\n" +
            "179078\n" +
            "179079\n" +
            "179080\n" +
            "179081\n" +
            "179082\n" +
            "179083\n" +
            "179084\n" +
            "179085\n" +
            "179086\n" +
            "179087\n" +
            "179088\n" +
            "179089\n" +
            "179090\n" +
            "179091\n" +
            "179092\n" +
            "179093\n" +
            "179094\n" +
            "179095\n" +
            "179096\n" +
            "179097\n" +
            "179098\n" +
            "179099\n" +
            "179100\n" +
            "179101\n" +
            "179102\n" +
            "179103\n" +
            "179104\n" +
            "179105\n" +
            "179106\n" +
            "179107\n" +
            "179108\n" +
            "179109\n" +
            "179110\n" +
            "179111\n" +
            "179112\n" +
            "179113\n" +
            "179114\n" +
            "179115\n" +
            "179116\n" +
            "179117\n" +
            "179118\n" +
            "179119\n" +
            "179120\n" +
            "179121\n" +
            "179122\n" +
            "179123\n" +
            "179124\n" +
            "179125\n" +
            "179126\n" +
            "179127\n" +
            "179128\n" +
            "179129\n" +
            "179130\n" +
            "179131\n" +
            "179132\n" +
            "179133\n" +
            "179134\n" +
            "179135\n" +
            "179136\n" +
            "179137\n" +
            "179138\n" +
            "179139\n" +
            "179140\n" +
            "179141\n" +
            "179142\n" +
            "179143\n" +
            "179144\n" +
            "179145\n" +
            "179146\n" +
            "179147\n" +
            "179148\n" +
            "179149\n" +
            "179150\n" +
            "179151\n" +
            "179152\n" +
            "179153\n" +
            "179154\n" +
            "179155\n" +
            "179156\n" +
            "179157\n" +
            "179158\n" +
            "179159\n" +
            "179160\n" +
            "179161\n" +
            "179162\n" +
            "179163\n" +
            "179164\n" +
            "179165\n" +
            "179166\n" +
            "179167\n" +
            "179168\n" +
            "179169\n" +
            "179170\n" +
            "179171\n" +
            "179172\n" +
            "179173\n" +
            "179174\n" +
            "179175\n" +
            "179176\n" +
            "179177\n" +
            "179178\n" +
            "179179\n" +
            "179180\n" +
            "179181\n" +
            "179182\n" +
            "179183\n" +
            "179184\n" +
            "179185\n" +
            "179186\n" +
            "179187\n" +
            "179188\n" +
            "179189\n" +
            "179190\n" +
            "179191\n" +
            "179192\n" +
            "179193\n" +
            "179194\n" +
            "179195\n" +
            "179196\n" +
            "179197\n" +
            "179198\n" +
            "179199\n" +
            "179200\n" +
            "179201\n" +
            "179202\n" +
            "179203\n" +
            "179204\n" +
            "179205\n" +
            "179206\n" +
            "179207\n" +
            "179208\n" +
            "179209\n" +
            "179210\n" +
            "179211\n" +
            "179212\n" +
            "179213\n" +
            "179214\n" +
            "179215\n" +
            "179216\n" +
            "179217\n" +
            "179218\n" +
            "179219\n" +
            "179220\n" +
            "179221\n" +
            "179222\n" +
            "179223\n" +
            "179224\n" +
            "179225\n" +
            "179226\n" +
            "179227\n" +
            "179228\n" +
            "179229\n" +
            "179230\n" +
            "179231\n" +
            "179232\n" +
            "179233\n" +
            "179234\n" +
            "179235\n" +
            "179236\n" +
            "179237\n" +
            "179238\n" +
            "179239\n" +
            "179240\n" +
            "179241\n" +
            "179242\n" +
            "179243\n" +
            "179244\n" +
            "179245\n" +
            "179246\n" +
            "179247\n" +
            "179248\n" +
            "179249\n" +
            "179250\n" +
            "179251\n" +
            "179252\n" +
            "179253\n" +
            "179254\n" +
            "179255\n" +
            "179256\n" +
            "179257\n" +
            "179258\n" +
            "179259\n" +
            "179260\n" +
            "179261\n" +
            "179262\n" +
            "179263\n" +
            "179264\n" +
            "179265\n" +
            "179266\n" +
            "179267\n" +
            "179268\n" +
            "179269\n" +
            "179270\n" +
            "179271\n" +
            "179272\n" +
            "179273\n" +
            "179274\n" +
            "179275\n" +
            "179276\n" +
            "179277\n" +
            "179278\n" +
            "179279\n" +
            "179280\n" +
            "179281\n" +
            "179282\n" +
            "179283\n" +
            "179284\n" +
            "179285\n" +
            "179286\n" +
            "179287\n" +
            "179288\n" +
            "179289\n" +
            "179290\n" +
            "179291\n" +
            "179292\n" +
            "179293\n" +
            "179294\n" +
            "179295\n" +
            "179296\n" +
            "179297\n" +
            "179298\n" +
            "179299\n" +
            "179300\n" +
            "179301\n" +
            "179302\n" +
            "179303\n" +
            "179304\n" +
            "179305\n" +
            "179306\n" +
            "179307\n" +
            "179308\n" +
            "179309\n" +
            "179310\n" +
            "179311\n" +
            "179312\n" +
            "179313\n" +
            "179314\n" +
            "179315\n" +
            "179316\n" +
            "179317\n" +
            "179318\n" +
            "179319\n" +
            "179320\n" +
            "179321\n" +
            "179322\n" +
            "179323\n" +
            "179324\n" +
            "179325\n" +
            "179326\n" +
            "179327\n" +
            "179328\n" +
            "179329\n" +
            "179330\n" +
            "179331\n" +
            "179332\n" +
            "179333\n" +
            "179334\n" +
            "179335\n" +
            "179336\n" +
            "179337\n" +
            "179338\n" +
            "179339\n" +
            "179340\n" +
            "179341\n" +
            "179342\n" +
            "179343\n" +
            "179344\n" +
            "179345\n" +
            "179346\n" +
            "179347\n" +
            "179348\n" +
            "179349\n" +
            "179350\n" +
            "179351\n" +
            "179352\n" +
            "179353\n" +
            "179354\n" +
            "179355\n" +
            "179356\n" +
            "179357\n" +
            "179358\n" +
            "179359\n" +
            "179360\n" +
            "179361\n" +
            "179362\n" +
            "179363\n" +
            "179364\n" +
            "179365\n" +
            "179366\n" +
            "179367\n" +
            "179368\n" +
            "179369\n" +
            "179370\n" +
            "179371\n" +
            "179372\n" +
            "179373\n" +
            "179374\n" +
            "179375\n" +
            "179376\n" +
            "179377\n" +
            "179378\n" +
            "179379\n" +
            "179380\n" +
            "179381\n" +
            "179382\n" +
            "179383\n" +
            "179384\n" +
            "179385\n" +
            "179386\n" +
            "179387\n" +
            "179388\n" +
            "179389\n" +
            "179390\n" +
            "179391\n" +
            "179392\n" +
            "179393\n" +
            "179394\n" +
            "179395\n" +
            "179396\n" +
            "179397\n" +
            "179398\n" +
            "179399\n" +
            "179400\n" +
            "179401\n" +
            "179402\n" +
            "179403\n" +
            "179404\n" +
            "179405\n" +
            "179406\n" +
            "179407\n" +
            "179408\n" +
            "179409\n" +
            "179410\n" +
            "179411\n" +
            "179412\n" +
            "179413\n" +
            "179414\n" +
            "179415\n" +
            "179416\n" +
            "179417\n" +
            "179418\n" +
            "179419\n" +
            "179420\n" +
            "179421\n" +
            "179422\n" +
            "179423\n" +
            "179424\n" +
            "179425\n" +
            "179426\n" +
            "179427\n" +
            "179428\n" +
            "179429\n" +
            "179430\n" +
            "179431\n" +
            "179432\n" +
            "179433\n" +
            "179434\n" +
            "179435\n" +
            "179436\n" +
            "179437\n" +
            "179438\n" +
            "179439\n" +
            "179440\n" +
            "179441\n" +
            "179442\n" +
            "179443\n" +
            "179444\n" +
            "179445\n" +
            "179446\n" +
            "179447\n" +
            "179448\n" +
            "179449\n" +
            "179450\n" +
            "179451\n" +
            "179452\n" +
            "179453\n" +
            "179454\n" +
            "179455\n" +
            "179456\n" +
            "179457\n" +
            "179458\n" +
            "179459\n" +
            "179460\n" +
            "179461\n" +
            "179462\n" +
            "179463\n" +
            "179464\n" +
            "179465\n" +
            "179466\n" +
            "179467\n" +
            "179468\n" +
            "179469\n" +
            "179470\n" +
            "179471\n" +
            "179472\n" +
            "179473\n" +
            "179474\n" +
            "179475\n" +
            "179476\n" +
            "179477\n" +
            "179478\n" +
            "179479\n" +
            "179480\n" +
            "179481\n" +
            "179482\n" +
            "179483\n" +
            "179484\n" +
            "179485\n" +
            "179486\n" +
            "179487\n" +
            "179488\n" +
            "179489\n" +
            "179490\n" +
            "179491\n" +
            "179492\n" +
            "179493\n" +
            "179494\n" +
            "179495\n" +
            "179496\n" +
            "179497\n" +
            "179498\n" +
            "179499\n" +
            "179500\n" +
            "179501\n" +
            "179502\n" +
            "179503\n" +
            "179504\n" +
            "179505\n" +
            "179506\n" +
            "179507\n" +
            "179508\n" +
            "179509\n" +
            "179510\n" +
            "179511\n" +
            "179512\n" +
            "179513\n" +
            "179514\n" +
            "179515\n" +
            "179516\n" +
            "179517\n" +
            "179518\n" +
            "179519\n" +
            "179520\n" +
            "179521\n" +
            "179522\n" +
            "179523\n" +
            "179524\n" +
            "179525\n" +
            "179526\n" +
            "179527\n" +
            "179528\n" +
            "179529\n" +
            "179530\n" +
            "179531\n" +
            "179532\n" +
            "179533\n" +
            "179534\n" +
            "179535\n" +
            "179536\n" +
            "179537\n" +
            "179538\n" +
            "179539\n" +
            "179540\n" +
            "179541\n" +
            "179542\n" +
            "179543\n" +
            "179544\n" +
            "179545";
}
